# Sample Makefile for fit3094

PROJECT= pirates
SOURCES=StudentAIControllerExample.cpp GL_routines.cpp Globals.cpp Gold.cpp graphicsExtra.cpp \
GridCell.cpp main.cpp Sea.cpp ShipBase.cpp AIController.cpp SimpleVector.cpp
OBJECTS=StudentAIControllerExample.o GL_routines.o Globals.o Gold.o graphicsExtra.o \
GridCell.o main.o Sea.o ShipBase.o AIController.o SimpleVector.o
CPP=g++
CFLAGS=-ansi -pedantic -Wall

#Uncomment the line below for compilation on Mac OSX
#LIBS=-framework GLUT -framework OpenGL

#Uncomment the line below for compilation on Linux
LIBS=-lGL -lglut

$(PROJECT): $(OBJECTS)
	$(CPP) -O2 -g $(OBJECTS) -o $(PROJECT) $(LIBS)
	@echo Finished Compiling

$(OBJECTS): $(SOURCES)
	@echo Compiling
	$(CPP) -O2 $(CFLAGS) -g -c $(SOURCES)

clean:
	@echo Deleting $(OBJECTS) $(PROJECT)
	rm -f $(PROJECT) $(OBJECTS)
